﻿/*
    This file is part of Lynsync

    Lynsync is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    Lynsync is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Lynsync; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

     created from Audolo Copyright 2006  M.Janzen (Xaltos)
 */

namespace Lynsync.Properties {
    
	// This class makes the treatment of certain events for the attitude class possible: 
	//  the SettingChanging event is released, before the value of an attitude is changed.
	//  the PropertyChanged event is released, after the value of an attitude was changed. 
	//  the SettingsLoaded event is released, after the setting values were loaded. 
	//  the SettingsSaving event is released, before the setting values are stored.
    // Diese Klasse ermöglicht die Behandlung bestimmter Ereignisse der Einstellungsklasse:
    //  Das SettingChanging-Ereignis wird ausgelöst, bevor der Wert einer Einstellung geändert wird.
    //  Das PropertyChanged-Ereignis wird ausgelöst, nachdem der Wert einer Einstellung geändert wurde.
    //  Das SettingsLoaded-Ereignis wird ausgelöst, nachdem die Einstellungswerte geladen wurden.
    //  Das SettingsSaving-Ereignis wird ausgelöst, bevor die Einstellungswerte gespeichert werden.
    internal sealed partial class Settings {
        
        public Settings() {
            //  //lifting it the Auskommentierung of the lines indicated down up, 
            //  in order to add Ereignishandler for storing and a changing of attitudes:
            // 
            // this.SettingChanging + = more this.SettingChangingEventHandler;
            //
            // this.SettingsSaving + = more this.SettingsSavingEventHandler; 
            //
            // // Heben Sie die  Auskommentierung der unten angezeigten Zeilen auf,
            // um Ereignishandler zum Speichern und Ändern von Einstellungen hinzuzufügen:
            //
            // this.SettingChanging += this.SettingChangingEventHandler;
            //
            // this.SettingsSaving += this.SettingsSavingEventHandler;
            //
        }
        
        private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
             // adding it here code for treating the SettingChangingEvent event in addition.
             // Fügen Sie hier Code zum Behandeln des SettingChangingEvent-Ereignisses hinzu.
        }
        
        private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e) {
			// adding it here code for treating the SettingsSaving event in addition.
    		// Fügen Sie hier Code zum Behandeln des SettingsSaving-Ereignisses hinzu.
        }
    }
}
